package example.springboot101;

import java.util.Arrays;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration
@ComponentScan(basePackages="example.springboot101")
@SpringBootApplication
public class SpringBootAopUnifiedLogApplication {

    public static void main(String[] args) {
        //http://localhost:8088/hello
		ApplicationContext ctx = SpringApplication.run(SpringBootAopUnifiedLogApplication.class, args);
		
		String[] beanNames = ctx.getBeanDefinitionNames();
		Arrays.sort(beanNames);
		for (String beanName : beanNames) {
			System.out.println(beanName);
		}
		
	}
}
